﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Artemis;

namespace JAWWS
{


    // partial class MainForm{
    class LightingSetup
    {
        public float[] ambient;
        public float[] diffuse;
        public float[] specular;

        public LightingSetup(float[] ambient, float[] diffuse, float[] specular)
        {
            this.ambient = new float[ambient.Length];
            this.diffuse = new float[diffuse.Length];
            this.specular = new float[specular.Length];

            ambient.CopyTo(this.ambient, 0);
            diffuse.CopyTo(this.diffuse, 0);
            specular.CopyTo(this.specular, 0);
        }
        public void set_light(uint source)
        {
            GL.glLightfv(source, GLenum.GL_AMBIENT, ambient);
            GL.glLightfv(source, GLenum.GL_DIFFUSE, diffuse);
            GL.glLightfv(source, GLenum.GL_SPECULAR, specular);
        }
    }
}